package com.jspx.txweb.table;

import com.jspx.sober.annotation.Column;
import com.jspx.sober.annotation.IDType;
import com.jspx.sober.annotation.Id;
import com.jspx.sober.annotation.Table;
import com.jspx.sober.table.OperateTable;
import com.jspx.utils.StringUtil;

@Table(name = "jspx_member_court", caption = "用户小区信息")
public class MemberCourt extends OperateTable {
    @Id(auto = true, type = IDType.serial)
    @Column(caption = "ID", notNull = true)
    private long id;

    @Column(caption = "用户ID", notNull = true)
    protected long uid = 0;

    //昵称，中文名称方式登录
    @Column(caption = "昵称", length = 50, dataType = "isLengthBetween(2,32)", notNull = true)
    private String name = StringUtil.empty;

    @Column(caption = "小区名称", length = 50, dataType = "isLengthBetween(2,32)", notNull = true)
    private String court  = StringUtil.empty;

    @Column(caption = "组团", length = 50, dataType = "isLengthBetween(2,32)", notNull = true)
    private String cluster = StringUtil.empty;

    @Column(caption = "栋", length = 30, dataType = "isLengthBetween(2,32)", notNull = true)
    private String unit   = StringUtil.empty;

    @Column(caption = "楼", length = 10, dataType = "isLengthBetween(2,10)", notNull = true)
    private String buld   = StringUtil.empty;

    @Column(caption = "号", length = 10, dataType = "isLengthBetween(2,10)", notNull = true)
    private String no   = StringUtil.empty;

    @Column(caption = "默认", notNull = true)
    private int def = 0;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCourt() {
        return court;
    }

    public void setCourt(String court) {
        this.court = court;
    }

    public String getCluster() {
        return cluster;
    }

    public void setCluster(String cluster) {
        this.cluster = cluster;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getBuld() {
        return buld;
    }

    public void setBuld(String buld) {
        this.buld = buld;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
